package com.microservice.example;
/**
 * @author JohnTang
 * @date 2017/9/29
 */

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@SpringBootApplication
@EnableEurekaClient
@EnableHystrix
public class ExampleApplication {
    protected final static Logger logger = LoggerFactory.getLogger(ExampleApplication.class);
    public static void main(String[] args) throws Exception {
        SpringApplication.run(ExampleApplication.class, args);
        logger.info("PortalApplication is success!");
        logger.info("Say Hello:     http://localhost:8082/example/hello");
        logger.info("Query Demo:    http://localhost:8082/example/list");
        logger.info("Druid Monitor: http://localhost:8082/example/config");
        logger.info("Druid Monitor: http://localhost:8082/druid/");
    }
}
